<template>
  <div id="app">
    <div>这里的环境为：{{env}}</div>
    <img alt="Vue logo" src="./assets/logo.png">
    <img class="baidu" src="/static/baidu.jpg">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  data() {
    return {
      env: {
        dev: '开发环境',
        prod: '生产环境',
        undefined: '未区分'
      }[NODE_ENV]
    }
  },
  components: {
    HelloWorld
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.baidu {
  width: 200px;
  height: 200px;
}
</style>
